package icu.sehnen.news.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import icu.sehnen.news.entity.MyPage;
import icu.sehnen.news.entity.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author icu.sehnen
 * @since 2021-04-26
 */
public interface NewsMapper extends BaseMapper<News> {

    News findNewsById(Long id);

    IPage<News> findAll(@Param("page") IPage<News> page, @Param("news") News news);
}
